pkgname=dtbtool
pkgver=3
pkgrel=3
pkgdesc="dtbtool"
url="https://github.com/LineageOS/android_device_qcom_common/tree/cm-14.1/dtbtool"
arch="all"
license="MIT"
source="dtbtool.c::https://raw.githubusercontent.com/LineageOS/android_device_qcom_common/cm-14.1/dtbtool/dtbtool.c Makefile"
options="!check"

build() {
	cd "$srcdir"
	make
}

package() {
	install -D -m755 "$srcdir"/dtbTool \
		"$pkgdir"/usr/bin/dtbTool
}
sha512sums="a98b24b962be0f11c037bdf420db57621249ba52d666b162b897fe02d06bd65969e4c260d5b2e01e2f851c9649d6e19d8584126b7ea6e5070424f41d383de1a7  dtbtool.c
18dd845899a3c11f0d5ae2eefb23eedf14b7c6d2e39a1c4e59f08fd893e5b549a5e9221413d1a2b4c9ab4507fb759fd6ae419a0223a98fb737b56cb467ef3d12  Makefile"
